import homes from '../views/homes.vue'
import details from '../views/detail.vue'
import hotRank from '../views/hotRank.vue'
import crack from '../views/break.vue'
import latestUpdate from '../views/latestUpdate.vue'
import online from '../views/online.vue'
import BTgame from '../views/BTgame.vue'
import search from '../views/search.vue'
import allClass from '../views/allClass.vue'
import notFind from '../views/notFind.vue'

const homeRoutes = [
  {path: '/', redirect: homes},
  {path: '/homes', name: 'homes', component: homes, meta: {contentHeader: {title: 'Dashboard', subTitle: 'Control panel'}}},
  {path: '/latestUpdate', name: 'latestUpdate', component: latestUpdate, meta: {contentHeader: {title: 'Dashboard', subTitle: 'Control panel'}}},
  {path: '/search', name: 'search', component: search, meta: {contentHeader: {title: 'Dashboard', subTitle: 'Control panel'}}},
  {path: '/online', name: 'online', component: online, meta: {contentHeader: {title: 'Dashboard', subTitle: 'Control panel'}}},
  {path: '/BTgame', name: 'BTgame', component: BTgame, meta: {contentHeader: {title: 'Activity', subTitle: 'Executing jobs'}}},
  {path: '/detail', name: 'detail', component: details, meta: {contentHeader: {title: 'Activity', subTitle: 'Executing jobs'}}},
  {path: '/crack', name: 'crack', component: crack, meta: {contentHeader: {title: 'Activity', subTitle: 'Executing jobs'}}},
  {path: '/hotRank', name: 'hotRank', component: hotRank, meta: {contentHeader: {title: 'Activity', subTitle: 'Executing jobs'}}},
  {path: '/allClass', name: 'allClass', component: allClass, meta: {contentHeader: {title: 'Activity', subTitle: 'Executing jobs'}}}

]

const notFindRoutes = {
  path: '/notFind',
  name: 'notFind',
  component: notFind
}

export default [
  ...homeRoutes,
  notFindRoutes
]
